package com.bkgy.modular.sbdCalculate.controller;

import com.bkgy.modular.sbdCalculate.dto.SbdCalculateDto;
import com.bkgy.modular.sbdCalculate.service.SbdCalculateService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author
 * @version 1.0
 * @ClassName SbdCalculateController
 * @date 2023/4/14 10:44
 */
@RestController
@RequestMapping("/querySbdCalculate")
public class SbdCalculateController {

    @Resource
    private SbdCalculateService service;

    /**
     * 同品规边降实际值&同品规边降预测值
     * @param dto
     * @return
     */
    @PostMapping("/findEdgWsPredAndfindEdmWsAvg")
    public ResultData findEdgWsPredAndfindEdmWsAvg(@RequestBody SbdCalculateDto dto) {
        return service.findEdgWsPredAndfindEdmWsAvg(dto);
    }
}
